package com.billdowney.util.return_type;

import java.util.HashMap;
import java.util.Map;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 返回代码对应信息获取
 * 
 * @author 超级小富翁 - BillDowney
 * @date 2019年3月4日 下午2:00:15
 */
@Component
@ConfigurationProperties(prefix = "billdowney.response-msg")
public class CodeUtil {

	private Map<Integer, String> code = new HashMap<>();

	public String getString(Object key) {
		return code.get(key);
	}

	public Map<Integer, String> getCode() {
		return code;
	}

}
